using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class ReassignObjectsOwnerRequest : OrganizationRequest
	{
		public EntityReference FromPrincipal
		{
			get
			{
				if (base.Parameters.Contains("FromPrincipal"))
				{
					return (EntityReference)base.Parameters["FromPrincipal"];
				}
				return null;
			}
			set
			{
				base.Parameters["FromPrincipal"] = value;
			}
		}
		public EntityReference ToPrincipal
		{
			get
			{
				if (base.Parameters.Contains("ToPrincipal"))
				{
					return (EntityReference)base.Parameters["ToPrincipal"];
				}
				return null;
			}
			set
			{
				base.Parameters["ToPrincipal"] = value;
			}
		}
		public ReassignObjectsOwnerRequest()
		{
			base.RequestName = "ReassignObjectsOwner";
			this.FromPrincipal = null;
			this.ToPrincipal = null;
		}
	}
}
